﻿@using RBS.Core.Extension
@model Webdiyer.WebControls.Mvc.PagedList<RBS.Core.Model.P_Advertis_Payment>
<!--列表-->
<div class="tbllist">
<table width="600" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tr>
        <th align="left">发行酒店</th>
        <th align="left">面额(元)</th>
        <th align="left">开始时间</th>
        <th align="left">失效时间</th>  
        <th align="left">使用规则</th> 
        <th align="left">状态</th>
        <th width="150">操作</th>
    </tr>
    @if (null != ViewData.Model)
    {
        foreach (var item in ViewData.Model)
        {
            <tr>
                <td align="left"> 
                    @{
                     var name = "";
                        try
                        {
                            name = new RBS.Core.BLL.Hotel.H_Hotels().GetModelByCache(item.HotelId).H_Name;
                        }
                        catch
                        {
                            name = "";
                        }
                        @name
                  } 
              </td> 
                <td align="left"> 
                    @(string.Format(" ¥{0}", item.Denomination)) 
                </td>
                <td align="left">
                    @(string.Format("{0:yyyy-MM-dd}", item.ValidStartTime))
                </td>
                <td align="left">@(string.Format("{0:yyyy-MM-dd}", item.ValidEndTime))

                </td> 
                <td align="left">
                    @Html.DisplayFor(modelItem => item.UseRules)
                </td> 
                <td align="left">
                        @Html.HtmlDeedStatus(item.DeedStatus) 

                </td>
                <td align="center">
                    @Html.ActionLink("删除", "DeedDeletew", new { apid = item.Id, Action1 = @RBS.Common.RBSEnums.ActionEnum.Delete })
                    @Html.ActionLink("赠与", "GiftUser", new { apid = item.Id, Action = @RBS.Common.RBSEnums.ActionEnum.Add })
                     
              
                </td>
            </tr>
        }
    }
</table>
<!--/列表-->
    </div>